Error codes
Last Update: 2025/3/26
When using the LLMProvider API, you may encounter various errors. This guide provides an overview of common error codes, their causes, and recommended solutions.
Below, you’ll find a list of potential API errors, including those returned by both the LLMProvider API and its official Python library. Each error code is explained in detail, along with troubleshooting steps to help you resolve issues effectively.
API errors
Code | Description | Cause | Solution |
---|---|---|---|
400 | Invalid Format | Invalid request body format. | Modify your request body according to the hints in the error message. Refer to the LLMProvider API Docs for correct format details. |
401 | Authentication Fails | Authentication fails due to the wrong API key. | Check your API key. If you don’t have one, create an API key first. |
402 | Quota Exceede | You have run out of balance. | Check your account balance and visit the Top-up page to add funds. |
403 | Forbidden | You don’t have permission to access the resource. | Check your account permissions or contact support for assistance. |
404 | Not Found | The requested resource does not exist. | Check the resource URL and ensure it is correct. |
422 | Invalid Parameters | Your request contains invalid parameters. | Modify your request parameters according to the hints in the error message. Refer to the LLMProvider API Docs for correct format details. |
429 | Rate Limit Reached | You are sending requests too quickly. | Pace your requests reasonably. Consider switching to alternative LLM service providers, like OpenAI. |
500 | Server Error | Our server encounters an issue. | Retry your request after a brief wait. Contact support if the issue persists. |
503 | Server Overloaded | The server is overloaded due to high traffic. | Retry your request after a brief wait. |
Persistent errors
f you continue experiencing errors despite following the suggested solutions, consider the following:
- Check API Status: Visit the LLMProvider status page to see if there are ongoing issues.
- Review API Documentation: Ensure your request adheres to the latest API format and requirements.
- Contact Support: If the issue persists, reach out to LLMProvider support with error details, request logs, and timestamps.